﻿<local:BaseWindow
	x:Class="PSE.Deployment.SetupBase.UI.SetupResult"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:PSE.Deployment.SetupBase.UI"
	Title="Setup">

    <Window.Resources>
        <local:ExecutionStatusConverter x:Key="ExecutionStatusConverter"></local:ExecutionStatusConverter>

    </Window.Resources>

    <Grid>
        <Button HorizontalAlignment="Right" Margin="0,15,15,0" x:Name="BtnClose" Style="{DynamicResource BotaoFechar}" VerticalAlignment="Top" Width="15" Height="15" Content=""/>
        <TextBlock x:Name="TxtTitleInstall" Visibility="Collapsed" Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="750" Foreground="#FF333333">
            <Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Instalação finalizada" Language="pt-br"/>
            <LineBreak/><LineBreak/><Run Foreground="#FF000000" Text="Parabéns e obrigado por ter instalado nosso Sistema." Language="pt-br"/>
            <LineBreak/><Run Foreground="#FF000000" Text="Verifique abaixo o resultado da instalação dos componentes selecionados." Language="pt-br"/>
        </TextBlock>
        <TextBlock x:Name="TxtTitleUninstall" Visibility="Collapsed" Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="750" Foreground="#FF333333">
            <Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Desinstalação finalizada" Language="pt-br"/>
            <LineBreak/><Run Foreground="#FF000000" Text="Verifique abaixo o resultado da desinstalação dos componentes selecionados." Language="pt-br"/>
        </TextBlock>
        <TextBlock x:Name="TxtTitleRepair" Visibility="Collapsed" Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="750" Foreground="#FF333333">
            <Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Reparação finalizada" Language="pt-br"/>
            <LineBreak/><Run Foreground="#FF000000" Text="Verifique abaixo o resultado da reparação dos componentes." Language="pt-br"/>
        </TextBlock>
        <TextBlock x:Name="TxtTitleChange" Visibility="Collapsed" Margin="50,125,0,0" VerticalAlignment="Top" FontSize="12" TextWrapping="Wrap" HorizontalAlignment="Left" Width="750" Foreground="#FF333333">
            <Run FontSize="24" FontWeight="Bold" Foreground="#FF336699" Text="Adicionar / Remover Componentes finalizado" Language="pt-br"/>
            <LineBreak/><Run Foreground="#FF000000" Text="Verifique abaixo o resultado da adição e remoção dos componentes." Language="pt-br"/>
        </TextBlock>

        <ListView Background="{DynamicResource BackCinza}" Margin="50,210,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Style="{DynamicResource List}" Width="860" Height="245" FontSize="12" FontWeight="Normal" IsSynchronizedWithCurrentItem="True" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ItemsSource="{Binding StepGroups}">
            <ListView.View>
                <GridView x:Name="GrdPrerequisites" ColumnHeaderContainerStyle="{DynamicResource ListaColunaCor}">
                    <GridViewColumn Header="Componente" DisplayMemberBinding="{Binding Description}" Width="650" />
                    <GridViewColumn Header="Status" DisplayMemberBinding="{Binding Converter={StaticResource ExecutionStatusConverter}}" Width="200" x:Name="Status" />
                </GridView>
            </ListView.View>
            <ListView.ItemContainerStyle>
                <Style TargetType="ListViewItem">
                    <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                </Style>
            </ListView.ItemContainerStyle>
        </ListView>

        <TextBlock x:Name="TxtLinkManual" Margin="50,470,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="12" TextWrapping="Wrap" Foreground="#FF333333" Height="115.87">
            <Run Cursor="Hand" FontWeight="Bold" x:Name="InstallationGuide" MouseLeftButtonDown="InstallationGuide_MouseLeftButtonDown" Text="Clique aqui para ler a documentação do sistema." Language="pt-br"/>
        </TextBlock>
        
        <TextBlock Margin="50,500,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="12" TextWrapping="Wrap" Foreground="#FF333333" Height="115.87" Text="{DynamicResource ContactSupport}" />
        
        <Button Margin="0,0,50,50" Style="{DynamicResource setupBt}" Content="Finalizar" Click="Button_Click" x:Name="BtnNext" Background="{DynamicResource BtBackColor}" VerticalAlignment="Bottom" Height="21" Foreground="#FFFFFFFF" Width="80" HorizontalAlignment="Right"/>
    </Grid>
</local:BaseWindow>
